package main

import (
	"time"
	"toyota-client1/app/centrifuge"
	"toyota-client1/app/current"
	"toyota-client1/app/mcquay"
	"toyota-client1/app/socket"
	"toyota-client1/init/global"
	"toyota-client1/utils/tools"
)

func main() {
	defer tools.Pause()
	go socket.WSClientRun()
	if global.CentrifugeEnable {
		go centrifuge.Run()
	}
	if global.McQuayEnable {
		go mcquay.Run()
	}
	if global.CurrentEnable {
		go current.Run()
	}
	for {
		time.Sleep(time.Hour * 1)
	}
}
